<?php
function smarty_function_emoticon($params, &$smarty)
{
	$strName 	= isset($params['name']) ? $params['name'] : '';
	$strName	= 'emo_' . $strName;
	$arrEmoticon = Vfriend_Function::viewEmoticon();
	$smarty->assign('strEmoName', 		$strName);
	$smarty->assign('arrEmoticon', 	$arrEmoticon);
	$smarty->display(ROOT_DIR . '/library/Vfriend/Plugins/Tpl/emoticon.tpl');
}
?>